package com.ruoyi.sales.mapper;

import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.sales.domain.ZcSpecifications;

/**
 * 产品规格Mapper接口
 *
 * @author woo
 * @date 2024-04-02
 */
public interface ZcSpecificationsMapper extends BaseMapper<ZcSpecifications> {
    /**
     * 查询产品规格
     *
     * @param specificationsId 产品规格主键
     * @return 产品规格
     */
    public ZcSpecifications selectZcSpecificationsBySpecificationsId(Long specificationsId);

    /**
     * 查询产品规格列表
     *
     * @param zcSpecifications 产品规格
     * @return 产品规格集合
     */
    public List<ZcSpecifications> selectZcSpecificationsList(ZcSpecifications zcSpecifications);

    /**
     * 新增产品规格
     *
     * @param zcSpecifications 产品规格
     * @return 结果
     */
    public int insertZcSpecifications(ZcSpecifications zcSpecifications);

    /**
     * 修改产品规格
     *
     * @param zcSpecifications 产品规格
     * @return 结果
     */
    public int updateZcSpecifications(ZcSpecifications zcSpecifications);

    /**
     * 删除产品规格
     *
     * @param specificationsId 产品规格主键
     * @return 结果
     */
    public int deleteZcSpecificationsBySpecificationsId(Long specificationsId);

    /**
     * 批量删除产品规格
     *
     * @param specificationsIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteZcSpecificationsBySpecificationsIds(Long[] specificationsIds);

    int updateSpecificationsStatus(ZcSpecifications zcSpecifications);
}